package com.ibeeking.found.report.rest.config.prop;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @Author ibeeking
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jeecg.jmreport")
@Component
@RefreshScope
public class JimuConfigProp  implements Serializable {
    private static final long serialVersionUID = -1L;

    @Value("${server.port:18170}")
    public String port;

    @Value("${server.servlet.context-path:/}")
    public String contextPath;

    public String address;

    public String autoSave;

    public Long interval;

    @Value("${jeecg.uploadType:local}")
    public String uploadType;

    @Value("${jeecg.path:/home/temp}")
    public String path;

}
